import request from "@/utils/request";

// 查询租赁合同子列表
export function listRentContractD(query) {
  return request({
    url: "/rent/rentContractD/list",
    method: "get",
    params: query,
  });
}

// 查询租赁合同子详细
export function getRentContractD(id) {
  return request({
    url: "/rent/rentContractD/" + id,
    method: "get",
  });
}

// 新增租赁合同子
export function addRentContractD(data) {
  return request({
    url: "/rent/rentContractD",
    method: "post",
    data: data,
  });
}

// 修改租赁合同子
export function updateRentContractD(data) {
  return request({
    url: "/rent/rentContractD",
    method: "put",
    data: data,
  });
}

// 删除租赁合同子
export function delRentContractD(id) {
  return request({
    url: "/rent/rentContractD/" + id,
    method: "delete",
  });
}
